export default ($axios) => {
  return {
    login: data => $axios.post('/client/index/login', data),//登录
    signout: data => $axios.delete('/client/index/logout', data),//退出登录
    getUserInfo: params => $axios.get('/client/index/info', {params}),//获取用户信息
    getNews: params => $axios.get('/client/news/page', {params}),//获取新闻列表
    getWebList: params => $axios.get('/client/index/web/list', {params}),//获取网站
    getNewsById: params => $axios.get('/client/news/getById', {params}),//获取新闻详情
    addNews: data => $axios.post('/client/news/update', data),//添加新闻
    deleteNew: data => $axios.delete('/client/news/remove', data),//删除新闻
  }
}
